<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%--
代码为自动生成 Created by www.magicalcoder.com
 如果你改变了此类 read 请将此行删除
 欢迎加入官方QQ群:323237052
--%>
<tr>
    <td>
            <input type="checkbox"><input type="hidden" name="id" value="${goodsImg.id}"></td>
    </td>
    <td>
            <div class="form-group">
                                        <div class="col-sm-9">
                                            <input type="text" class="form-control " 
                                                   name="imgName" title="图片名称"  placeholder="请输入图片名称"
                                                   minLength="0"            value="${goodsImg.imgName}">
                                        </div>
                                        <label class="col-sm-2 control-label" >
                                            <span class="validateMsg"></span>
                                        </label>
            </div>
    </td>
    <td>
            <div class="form-group">
                                        <div class="col-sm-9">
                                            <img   src="${goodsImg.imgUrl}" />
                                            <input type="text" class="form-control "
                                                          name="imgUrl"
                                                         value="${goodsImg.imgUrl}" placeholder="">
                                            <input type="file" 
                                                        name="myfiles" onchange="uploadFile2('imgUrl','goods_img',this)" class="file" />
                                        </div>
                                        <label class="col-sm-2 control-label" >
                                            <span class="validateMsg"></span>
                                        </label>
            </div>
    </td>
    <td>
            <div class="form-group">
                                         <div class="col-sm-9" style="min-width:120px">
                                             <select class="form-control"  name="type" title="类型"  >
                                                         <option
                                                 <c:if test="${ goodsImg.type == 0 }">selected</c:if>
                                                 value="0" >类型一</option>
                                                         <option
                                                 <c:if test="${ goodsImg.type == 1 }">selected</c:if>
                                                 value="1" >类型二</option>
                                             </select>
                                        </div>
                                        <label class="col-sm-2 control-label" >
                                            <span class="validateMsg"></span>
                                        </label>
            </div>
    </td>
    <td>
            <div class="form-group">
                                        <div class="col-sm-9" style="min-width:120px">
                                            <input type="radio" class="" name="status_${goodsImg.id}" title="状态"  
                                                <c:if test="${!goodsImg.status }">checked</c:if>
                                               value="false" >否
                                            <input type="radio" class="" name="status_${goodsImg.id}" title="状态"  
                                                <c:if test="${goodsImg.status }">checked</c:if>
                                               value="true" >是
                                        </div>
                                        <label class="col-sm-2 control-label" >
                                            <span class="validateMsg"></span>
                                        </label>
            </div>
    </td>
    <td>
            <div class="form-group">
                                        <div class="col-sm-9">
                                            <textarea cols="100" rows="8"
                                                  class="form-control " 
                                                 name="imgDesc" title="描述"  placeholder="请输入描述"
                                                  minLength="0"         >${goodsImg.imgDesc}</textarea>
                                        </div>
                                        <label class="col-sm-2 control-label" >
                                            <span class="validateMsg"></span>
                                        </label>
            </div>
    </td>
    <td>
            <div class="form-group">
                                        <div class="col-sm-9">
                                            <input  type="text" name="createTime" class="Wdate form-control"                                                onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss',maxDate:'%y-%M-%d %H:%m:%s'})"
                                               value="<fmt:formatDate value="${ goodsImg.createTime }"
                                               pattern="yyyy-MM-dd HH:mm:ss"/>" style="width: 170px;">
                                        </div>
                                        <label class="col-sm-2 control-label" >
                                            <span class="validateMsg"></span>
                                        </label>
            </div>
    </td>
    <td><button onclick="copyTr(this)">复制</button><button onclick="deleteTr(this,'goods_img')">删除</button></td>
</tr>